package cn.feng.thinkInJava.b7_1_swt.gui.a22_08_01;

//: gui/Buttons.java
// Various Swing buttons.
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.plaf.basic.*;
import java.awt.*;
import static net.mindview.util.SwingConsole.*;

public class Buttons extends JFrame
{
	private JButton jb=new JButton("JButton");
	private BasicArrowButton up=new BasicArrowButton(BasicArrowButton.NORTH),down=new BasicArrowButton(BasicArrowButton.SOUTH),right=new BasicArrowButton(
			BasicArrowButton.EAST),left=new BasicArrowButton(BasicArrowButton.WEST);
	
	public Buttons()
	{
		setLayout(new FlowLayout());
		add(jb);
		add(new JToggleButton("JToggleButton"));
		add(new JCheckBox("JCheckBox"));
		add(new JRadioButton("JRadioButton"));
		JPanel jp=new JPanel();
		jp.setBorder(new TitledBorder("Directions"));
		jp.add(up);
		jp.add(down);
		jp.add(left);
		jp.add(right);
		add(jp);
	}
	
	public static void main(String[] args)
	{
		run(new Buttons(),350,200);
	}
} // /:~
